package com.xu.system.model.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

import java.time.LocalDateTime;

/**
 * <p>
 * 用户表
 * </p>
 *
 * @author 许乾伟
 * @since 2024-12-03 03:53:30
 */
@Getter
@Setter
@Accessors(chain = true)
@TableName("sys_user")
public class SysUser {

    /**
     * 主键
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 用户姓名
     */
    @TableField("user_name")
    private String userName;

    /**
     * 用户编号
     */
    @TableField("user_code")
    private String userCode;

    /**
     * 工号
     */
    @TableField("work_number")
    private String workNumber;

    /**
     * 用户性别（1男 2女 0未知）
     */
    @TableField("sex")
    private Integer sex;

    /**
     * 生日
     */
    @TableField("birthday")
    private LocalDateTime birthday;

    /**
     * 手机号码
     */
    @TableField("phone")
    private String phone;

    /**
     * 固定电话
     */
    @TableField("tell_phone")
    private String tellPhone;

    /**
     * 职务
     */
    @TableField("job_title")
    private String jobTitle;

    /**
     * 用户账号
     */
    @TableField("account")
    private String account;

    /**
     * 用户密码
     */
    @TableField("pwd")
    private String pwd;

    /**
     * 备注
     */
    @TableField("remark")
    private String remark;

    /**
     * 状态（false:停用;true:正常）
     */
    @TableField("status")
    private Boolean status;

    /**
     * 创建者
     */
    @TableField("create_by")
    private Long createBy;

    /**
     * 创建时间
     */
    @TableField("create_time")
    private LocalDateTime createTime;

    /**
     * 更新者
     */
    @TableField("update_by")
    private Long updateBy;

    /**
     * 更新时间
     */
    @TableField("update_time")
    private LocalDateTime updateTime;

    /**
     * 是否删除（false:正常;true:删除）
     */
    @TableField("is_delete")
    private Boolean isDelete;

    public static final String ID = "id";

    public static final String USER_NAME = "user_name";

    public static final String USER_CODE = "user_code";

    public static final String WORK_NUMBER = "work_number";

    public static final String SEX = "sex";

    public static final String BIRTHDAY = "birthday";

    public static final String PHONE = "phone";

    public static final String TELL_PHONE = "tell_phone";

    public static final String JOB_TITLE = "job_title";

    public static final String ACCOUNT = "account";

    public static final String PWD = "pwd";

    public static final String REMARK = "remark";

    public static final String STATUS = "status";

    public static final String CREATE_BY = "create_by";

    public static final String CREATE_TIME = "create_time";

    public static final String UPDATE_BY = "update_by";

    public static final String UPDATE_TIME = "update_time";

    public static final String IS_DELETE = "is_delete";
}
